]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
lookingGlass: Reformat command header
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 12 Jul 2023 19:32:56 +0000 (21:32 +0200)
committerMarge Bot <marge-bot@gnome.org>
Fri, 14 Jul 2023 12:36:53 +0000 (12:36 +0000)
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2842>

js/ui/lookingGlass.js

index fd19e713e587a9e2471969483cce10232383f418..ac618200c8fff1d5ae3f6292a7793355c4accc1a 100644 (file)
@@ -26,15 +26,19 @@ const { ExtensionState } = ExtensionUtils;
 const CHEVRON = '>>> ';
 
 /* Imports...feel free to add here as needed */
-var commandHeader = 'const { Clutter, Gio, GLib, GObject, Meta, Shell, St } = imports.gi; ' +
-                    'const Main = imports.ui.main; ' +
-                    /* Utility functions...we should probably be able to use these
-                     * in the shell core code too. */
-                    'const stage = global.stage; ' +
-                    /* Special lookingGlass functions */
-                    'const inspect = Main.lookingGlass.inspect.bind(Main.lookingGlass); ' +
-                    'const it = Main.lookingGlass.getIt(); ' +
-                    'const r = Main.lookingGlass.getResult.bind(Main.lookingGlass); ';
+const commandHeader = `
+    const {Clutter, Gio, GLib, GObject, Meta, Shell, St} = imports.gi;
+    const Main = imports.ui.main;
+
+    /* Utility functions...we should probably be able to use these
+     * in the shell core code too. */
+    const stage = global.stage;
+
+    /* Special lookingGlass functions */
+    const inspect = Main.lookingGlass.inspect.bind(Main.lookingGlass);
+    const it = Main.lookingGlass.getIt();
+    const r = Main.lookingGlass.getResult.bind(Main.lookingGlass);
+    `;
 
 const HISTORY_KEY = 'looking-glass-history';
 // Time between tabs for them to count as a double-tab event